<?php

namespace App\Modules\Admin\Entities\Member;

use App\Models\Model;
use App\Modules\Admin\Entities\Mall\GoodsModel;

class UserCollectionModel extends Model
{

    protected $table='user_collection';
    protected $primaryKey='id';

    public function goods_info()
    {
        return $this->hasOne(GoodsModel::class,'goods_id','goods_id')->select(['goods_id','goods_name','price','card_price','goods_img']);
    }

}
